package com.cmc.cloud.cmclink.doc.api.document.emums;

import lombok.Getter;

/**
 * @author 胡政
 * @date 2025/7/22
 */
public enum SpecialEnum {
    /**
     * 不规则物体
     */
    AK("AK", "不规则物体"),
    /**
     * 不规则物体同AK
     */
    OOG("OOG", "不规则物体同AK"),
    /**
     * ODO
     */
    ODO("ODO", "ODO"),
    /**
     * 危险品
     */
    DG("DG", "危险品"),
    /**
     * 液袋物
     */
    FLEXI("FLEXI", "液袋物"),
    /**
     * 特种货
     */
    SPC("SPC", "特种货");

    @Getter
    private String value;

    @Getter
    private String label;

    SpecialEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }
    public static SpecialEnum getByValue(String value) {
        for (SpecialEnum item : SpecialEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }
}
